using Circus.CodeEditor.TextSource;
using System;
using System.Drawing;
using System.Text.RegularExpressions;
namespace Circus.CodeEditor
{
	public class TextFoundEventArgs : EventArgs
	{
		public string FileName = string.Empty;
		public string Text;
		public SearchOptions Options;
		public Regex Expression;
		public Match Match;
		public Point Position;
		public int Len;
		public bool MultiLine;
		public CodeEditor Search;
		public TextFoundEventArgs(CodeEditor search)
		{
			this.Search = search;
			if (search is CodeEditor)
			{
				this.FileName = ((CodeEditor)search).Source.FileName;
			}
		}
		public TextFoundEventArgs(string fileName, string text, SearchOptions options, Regex expression, Match match, Point position, int len, bool multiLine)
		{
			this.FileName = fileName;
			this.Text = text;
			this.Options = options;
			this.Expression = expression;
			this.Match = match;
			this.Position = position;
			this.Len = len;
			this.MultiLine = multiLine;
		}
	}
}
